//
//  WHIAxYJLCFMineModuleCellcFDrsU.m
//  Jlcf_ios
//
//  Created by Ji on 2018/9/26.
//  Copyright © 2018 ski. All rights reserved.
//

#import "WHIAxYJLCFMineModuleCellcFDrsU.h"
#import "hZTiJbJLCFMineMoneyLogViewControllernOFYEf.h"
#import "tsUlexJLCFMineInverstRecordViewControllerzqObZt.h"
#import "OOWEbCJLCFMineWelfareGroupViewControllerULJuVy.h"

@interface WHIAxYJLCFMineModuleCellcFDrsU ()

@property (nonatomic, strong) UIImageView *sIzSfkmoneyImgoAHjLQ;//投资记录
@property (nonatomic, strong) UILabel *TvtacpmoneyLabelIfJqAd;

@property (nonatomic, strong) UIImageView *GtswSninterestImgMimnMj;//出借记录
@property (nonatomic, strong) UILabel *hXmEPAintezCFozurestLabelGrseuqnMguKw;

@property (nonatomic, strong) UIImageView *mFnyGKwelfareImgtChoBH;//优惠券
@property (nonatomic, strong) UILabel *XpLfSfwelfareLabelCbxWjE;


@end

@implementation WHIAxYJLCFMineModuleCellcFDrsU

- (void)reloadData
{
    
    self.backgroundColor = QTZ_White;
    if (!self.sIzSfkmoneyImgoAHjLQ) {
        self.sIzSfkmoneyImgoAHjLQ = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_mine_money"]];
        self.sIzSfkmoneyImgoAHjLQ.centerY = 40;
        self.sIzSfkmoneyImgoAHjLQ.centerX = FULL_WIDTH / 6 - 10;
        self.sIzSfkmoneyImgoAHjLQ.userInteractionEnabled = YES;
        [self.sIzSfkmoneyImgoAHjLQ bk_whenTapped:^{
            [[[JinLiCaiFuApplicationEntrace shareEntrance] currentNavController] pushViewController:[hZTiJbJLCFMineMoneyLogViewControllernOFYEf new] animated:YES];
        }];
        [self addSubview:self.sIzSfkmoneyImgoAHjLQ];
    }
    
    if (!self.TvtacpmoneyLabelIfJqAd) {
        self.TvtacpmoneyLabelIfJqAd = [UILabel labelWithText:@"资金记录" textColor:QTZ_Gray102 font:FONT(11)];
        self.TvtacpmoneyLabelIfJqAd.centerX = self.sIzSfkmoneyImgoAHjLQ.centerX;
        self.TvtacpmoneyLabelIfJqAd.top = self.sIzSfkmoneyImgoAHjLQ.bottom + 10;
        [self addSubview:self.TvtacpmoneyLabelIfJqAd];
    }
    
    if (!self.GtswSninterestImgMimnMj) {
        self.GtswSninterestImgMimnMj = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_mine_interest"]];
        self.GtswSninterestImgMimnMj.centerY = self.sIzSfkmoneyImgoAHjLQ.centerY;
        self.GtswSninterestImgMimnMj.centerX = FULL_WIDTH / 2;
        self.GtswSninterestImgMimnMj.userInteractionEnabled = YES;
        [self.GtswSninterestImgMimnMj bk_whenTapped:^{
            [[[JinLiCaiFuApplicationEntrace shareEntrance] currentNavController] pushViewController:[tsUlexJLCFMineInverstRecordViewControllerzqObZt new] animated:YES];
        }];
        [self addSubview:self.GtswSninterestImgMimnMj];
    }
    
    if (!self.hXmEPAintezCFozurestLabelGrseuqnMguKw) {
        self.hXmEPAintezCFozurestLabelGrseuqnMguKw = [UILabel labelWithText:@"出借记录" textColor:QTZ_Gray102 font:FONT(11)];
        self.hXmEPAintezCFozurestLabelGrseuqnMguKw.centerX = self.GtswSninterestImgMimnMj.centerX;
        self.hXmEPAintezCFozurestLabelGrseuqnMguKw.top = self.GtswSninterestImgMimnMj.bottom + 10;
        [self addSubview:self.hXmEPAintezCFozurestLabelGrseuqnMguKw];
    }
    
    if (!self.mFnyGKwelfareImgtChoBH) {
        self.mFnyGKwelfareImgtChoBH = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_mine_welfare"]];
        self.mFnyGKwelfareImgtChoBH.centerY = self.sIzSfkmoneyImgoAHjLQ.centerY;
        self.mFnyGKwelfareImgtChoBH.centerX = FULL_WIDTH / 6 * 5 + 10;
        self.mFnyGKwelfareImgtChoBH.userInteractionEnabled = YES;
        [self.mFnyGKwelfareImgtChoBH bk_whenTapped:^{
            [[[JinLiCaiFuApplicationEntrace shareEntrance] currentNavController] pushViewController:[OOWEbCJLCFMineWelfareGroupViewControllerULJuVy new] animated:YES];
        }];
        [self addSubview:self.mFnyGKwelfareImgtChoBH];
    }
    
    if (!self.XpLfSfwelfareLabelCbxWjE) {
        self.XpLfSfwelfareLabelCbxWjE = [UILabel labelWithText:@"优惠券" textColor:QTZ_Gray102 font:FONT(11)];
        self.XpLfSfwelfareLabelCbxWjE.centerX = self.mFnyGKwelfareImgtChoBH.centerX;
        self.XpLfSfwelfareLabelCbxWjE.top = self.mFnyGKwelfareImgtChoBH.bottom + 10;
        [self addSubview:self.XpLfSfwelfareLabelCbxWjE];
    }
    
    
}

@end
